﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using OdcTest.ViewModels;

namespace OdcTest.Views
{
    public partial class PanoramaPage : PhoneApplicationPage
    {
        public PanoramaPage()
        {
            InitializeComponent();
            Loaded += new RoutedEventHandler(PanoramaPage_Loaded);
            Unloaded += new RoutedEventHandler(PanoramaPage_Unloaded);
        }

        void PanoramaPage_Unloaded(object sender, RoutedEventArgs e)
        {
            listBox1.SelectedItem = null;
        }

        void PanoramaPage_Loaded(object sender, RoutedEventArgs e)
        {
        }

        public void OnDeactivated(object sender, EventArgs e)
        {
            DataViewModel vm = grid3.DataContext as DataViewModel;
            vm.SelectedItem = null;
        }

        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
        }

    }

}